/**
 * Copyright 2016 Qiyi Inc. All rights reserved.
 * 
 * @file:   StatisticOcr2.js
 * @path:   js-src/StatisticOcr/
 * @author: karkarrotxu@qiyi.com
 * @date:   2016-06-26
 */
qui(
	function(require, exports, module){
///import js-src/lib/
///import js-src/com/
window.StatisticOcr2 = window.StatisticOcr2 || { version : '1.0' };
        ///api/statistic/data/ocr/new
        StatisticOcr2.Constant = {
            baseApiUrl: "/api/",
            thirdUrl_query_user:"http://lego.iqiyi.com/external/auth/auth-api/services/user/search",
            thirdUrl_channel_type: "http://lego.iqiyi.com/suggest/operation",
            devMode: auth.dev()
        }

        StatisticOcr2.urlConfig = (function () {
            var useUrl = StatisticOcr2.Constant.baseApiUrl;
            var redirectUrl = useUrl + "redirect";
            var sdGetUrl = useUrl + "sd";
            var createUrl = useUrl + "statistic/ocr/new";
            var newListUrl = useUrl + "statistic/ocr/list";
            var queryAvgAndFullPercentUrl = useUrl + "statistic/ocr/avgAndFullPercent";
            var getOcrExcelUrl = useUrl + "statistic/download/ocrExcel";
            var queryChannelName =(StatisticOcr2.Constant.devMode ? "http://10.23.70.33:7000" : "http://10.23.70.219")+"/v1/channel/fuzzyquery";
            return {
                sdGetUrl: sdGetUrl,
                createUrl:createUrl,
                newListUrl:newListUrl,
                queryAvgAndFullPercentUrl:queryAvgAndFullPercentUrl,
                redirectUrl:redirectUrl,
                getOcrExcelUrl:getOcrExcelUrl,
                queryChannelName:queryChannelName

            }
        })()
	}
);